package com.bjsxt.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 系统菜单
 */
@ApiModel(value = "com-bjsxt-domain-SysMenu")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "sys_menu")
public class SysMenu {
    public static final String COL_ID = "id";
    public static final String COL_PARENT_ID = "parent_id";
    public static final String COL_PARENT_KEY = "parent_key";
    public static final String COL_TYPE = "type";
    public static final String COL_NAME = "name";
    public static final String COL_DESC = "desc";
    public static final String COL_TARGET_URL = "target_url";
    public static final String COL_SORT = "sort";
    public static final String COL_STATUS = "status";
    public static final String COL_CREATE_BY = "create_by";
    public static final String COL_MODIFY_BY = "modify_by";
    public static final String COL_CREATED = "created";
    public static final String COL_LAST_UPDATE_TIME = "last_update_time";
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "主键")
    private Long id;
    /**
     * 上级菜单ID
     */
    @TableField(value = "parent_id")
    @ApiModelProperty(value = "上级菜单ID")
    private Long parentId;
    /**
     * 上级菜单唯一KEY值
     */
    @TableField(value = "parent_key")
    @ApiModelProperty(value = "上级菜单唯一KEY值")
    private String parentKey;
    /**
     * 类型 1-分类 2-节点
     */
    @TableField(value = "type")
    @ApiModelProperty(value = "类型 1-分类 2-节点")
    private Byte type;
    /**
     * 名称
     */
    @TableField(value = "`name`")
    @ApiModelProperty(value = "名称")
    private String name;
    /**
     * 描述
     */
    @TableField(value = "`desc`")
    @ApiModelProperty(value = "描述")
    private String desc;
    /**
     * 目标地址
     */
    @TableField(value = "target_url")
    @ApiModelProperty(value = "目标地址")
    private String targetUrl;
    /**
     * 排序索引
     */
    @TableField(value = "sort")
    @ApiModelProperty(value = "排序索引")
    private Integer sort;
    /**
     * 状态 0-无效； 1-有效；
     */
    @TableField(value = "status")
    @ApiModelProperty(value = "状态 0-无效； 1-有效；")
    private Byte status;
    /**
     * 创建人
     */
    @TableField(value = "create_by")
    @ApiModelProperty(value = "创建人")
    private Long createBy;
    /**
     * 修改人
     */
    @TableField(value = "modify_by")
    @ApiModelProperty(value = "修改人")
    private Long modifyBy;
    /**
     * 创建时间
     */
    @TableField(value = "created")
    @ApiModelProperty(value = "创建时间")
    private Date created;
    /**
     * 修改时间
     */
    @TableField(value = "last_update_time")
    @ApiModelProperty(value = "修改时间")
    private Date lastUpdateTime;
}